<?php
/** 工作界面显示
 */
?>
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>工作详情</title>
    <meta name="viewport" content="initial-scale=1.0,width=device-width" />
    <link rel="stylesheet" href="home/job/css/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="home/job/css/prettyPhoto.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="home/job/css/print.css" type="text/css" media="print" />
</head>
<body>

<div id="sticker"></div>
<div id="wrapper">
    <h2 id="titleName" class="sectionHead">需要一个<?php echo $job->kind;?></h2>
    <div id="bio">
        <h2> 大概工资：<?php echo $job->general_wage;?> </h2>
        <p>
            工作ID：<?php echo $job->id;?><br><br>
            工作名称：<?php echo $job->name;?>
        </p>
    </div>

    <div class="clear"></div>

    <!--RECOMMENDATIONS TITLE-->
    <h2 id="chat" class="sectionHead">工作要求</h2>

    <!--RECOMMENDATIONS-->
    <ul id="recommends">

        <li><h3>时间</h3></li>

        <li>
            <div class="details">
                <h3>工作时间</h3>
                <h4>具体情况视情况定</h4>
            </div>
            <p><?php echo $job->jobtime;?></p>
        </li>

        <li><h3>地点</h3></li>

        <li>
            <div class="details">
                <h3>工作地点</h3>
                <h4>具体情况沟通后确定</h4>
            </div>
            <p><?php echo $job->address;?></p>
        </li>

        <li><h3>要求</h3></li>

        <li>
        <li>
            <div class="details">
                <h3>工作要求</h3>
                <h4>具体要求沟通后确定</h4>
            </div>
            <p><?php echo $job->request?></p>
        </li>
    </ul>

    <div class="clear"></div>
    <?php
    if(!empty(yii::$app->session['User']['token'])){
        ?>
        <div id="contactform"  class="contact">
            <a href="<?php echo \yii\helpers\Url::to(['user/job-apply','id'=>$job->id]);?>"><input id="submit_btn" type="submit" class="round3 clearRight" value="申请工作" /></a>
        </div>
    <?php };?>
    <?php
    if(empty(yii::$app->session['User']['token'])){
        ?>
        <div id="contactform"  class="contact">
            <a href="<?php echo \yii\helpers\Url::to(['login/login']);?>"><input id="submit_btn" type="submit" class="round3 clearRight" value="请登陆后后申请" /></a>
        </div>
    <?php };?>
</div>

<script src="home/job/js/jquery.js"></script>
<script src="home/job/js/prettyPhoto.js"></script>
<script src="home/job/js/backPosition.js"></script>
<script src="home/job/js/custom.js"></script>

</body>
</html>
